import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/sysNotice/addOrSave',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/sysNotice/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/sysNotice/addOrSave',
    method: 'post',
    data
  })
}

export function exportDe(data) {
    return request({
        url: 'api/sysNotice/export',
        method: 'post',
        data
    })
}

export function importDe(data) {
    return request({
        url: 'api/sysNotice/import',
        method: 'post',
        data
    })
}
export function notice(data) {
  return request({
    url: 'api/sysNotice/notice',
    method: 'post',
    data
  })
}
export function unNotice(data) {
  return request({
    url: 'api/sysNotice/unNotice',
    method: 'post',
    data
  })
}

export default { add, edit,exportDe, importDe, del }
